import { Button } from 'antd'
import axios from 'axios'

import React from 'react'
import NewsPublish from '../../components/publish-manage/NewsPublish'
import usePublish from '../../components/publish-manage/uesPublish'
export default function Sunset() {
   //3 ===已下线
  const {dataSource,handleDelete} = usePublish(3)
  return (
    <div>
      <NewsPublish dataSource={dataSource} button={(id)=><Button type='danger' onClick={()=>handleDelete(id)}>删除</Button>}></NewsPublish>
    </div>
  )
}
